
package com.zhitan.ems.app.iot.wrapper;
import com.zhitan.ems.app.iot.entity.DevicePropertyEntity;
import com.zhitan.ems.app.iot.vo.DevicePropertyVO;
import com.zhitan.ems.common.extra.utils.BeanUtil;
import com.zhitan.ems.framework.core.mp.base.BaseEntityWrapper;
  /**
 * 设备属性 包装类,返回视图层所需的字段
 * @author zhitan
 * 
 * @date 2025-09-19 22:15:46
 */
public class DevicePropertyWrapper extends BaseEntityWrapper<DevicePropertyEntity, DevicePropertyVO>  {
    public static DevicePropertyWrapper build() {
        return new DevicePropertyWrapper();
    }
	@Override
	public DevicePropertyVO entityVO(DevicePropertyEntity deviceProperty) {
		if(deviceProperty==null) {
			return null;
		}
		DevicePropertyVO devicePropertyVO = BeanUtil.copy(deviceProperty, DevicePropertyVO.class);
		return devicePropertyVO;
	}

}
